<?php
include_once('cont/cont.anggota.php');
include_once('cont/cont.user.php');
?>


<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="../../assets/ico/favicon.ico">

    <title>Database STAPALA</title>
    <link href="view/bt/css/sticky-footer-navbar.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="view/bt/css/dataTables.bootstrap.css">
    <link rel="stylesheet" type="text/css" href="view/bt/css/bootstrap.min.css">

	<script type="text/javascript" language="javascript" src="view/bt/js/jquery-1.11.0.js"></script>
	<script type="text/javascript" language="javascript" src="view/bt/js/jquery.dataTables.min.js"></script>
	<script type="text/javascript" language="javascript" src="view/bt/js/dataTables.bootstrap.js"></script>
	<script type="text/javascript" charset="utf-8">
		$(document).ready(function() {
			$('#example').dataTable();
		} );
	</script>
	
  </head>

  <body>

    <!-- Fixed navbar -->
    <div class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">STAPALA</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#contact">Contact</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li class="divider"></li>
                <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
	
	<div class="container">
	<div class="page-header">
        <h1>Daftar Korwil</h1>
     </div>
		<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
		<tbody> 
            <?php
			if($korwil != NULL){
				foreach($korwil as $col){
            ?>
          <tr>  
            <td><a href="detil_korwil.php?korwil&id=<?php echo $col[0]; ?>"><?php echo $col[1]; ?></a></td>
          </tr> 
          <?php
                }
            }?>   
        </tbody>
      </table>
	</div>
	
	<div id="footer">
      <div class="container">
        <p class="text-muted">&copy; Gerhantara 2014</p>
      </div>
    </div>
	
  </body>
</html>